const userService = require('../../service/userService');
const userRouter = {
    prefix: '/user',
    routers: [{
            method: 'post',
            url: '/wxLogin',
            handler: userService.wxLogin
        }, {
            method: 'post',
            url: '/buyerLogin',
            handler: userService.buyerLogin
        }, {
            method: 'post',
            url: '/login',
            handler: userService.login
        }, {
            method: 'post',
            handler: userService.create
        },
        {
            method: 'get',
            handler: userService.find
        }
    ]
}

module.exports = userRouter;